package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.UserDeptDao;
import com.platform.entity.UserDeptEntity;
import com.platform.service.UserDeptService;

/**
 * Service实现类
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2019-02-22 12:28:09
 */
@Service("userDeptService")
public class UserDeptServiceImpl implements UserDeptService {
    @Autowired
    private UserDeptDao userDeptDao;

    @Override
    public UserDeptEntity queryObject(Integer id) {
        return userDeptDao.queryObject(id);
    }

    @Override
    public List<UserDeptEntity> queryList(Map<String, Object> map) {
        return userDeptDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return userDeptDao.queryTotal(map);
    }

    @Override
    public int save(UserDeptEntity userDept) {
        return userDeptDao.save(userDept);
    }

    @Override
    public int update(UserDeptEntity userDept) {
        return userDeptDao.update(userDept);
    }

    @Override
    public int delete(Integer id) {
        return userDeptDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[] ids) {
        return userDeptDao.deleteBatch(ids);
    }
}
